﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;

namespace Edu.Entitys
{
    public class AppStudyTask : FullAuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 年
        /// </summary>
        public int Year
        {
            get;
            set;
        }

        /// <summary>
        /// 季度
        /// </summary>
        public int Quarter
        {
            get;
            set;
        }

        /// <summary>
        /// 任务标题
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 说明
        /// </summary>
        [StringLength(256)]
        public string Description
        {
            get;
            set;
        }

        /// <summary>
        /// 分数
        /// </summary>
        public int? Score
        {
            get;
            set;
        }


        /// <summary>
        /// 分数
        /// </summary>
        public int? TeacherScore
        {
            get;
            set;
        }
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTimeOffset DeadLine
        {
            get;
            set;
        }

        /// <summary>
        /// 老师的uid
        /// </summary>
        public Guid TeacherId
        {
            get;
            set;
        }

        /// <summary>
        /// 学生的uid
        /// </summary>
        public Guid StudentId
        {
            get;
            set;
        }

        /// <summary>
        /// 任务状态
        /// </summary>
        public StudyTaskStatus Status
        {
            get;
            set;
        }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTimeOffset? ReviewTime
        {
            get;
            set;
        }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTimeOffset? CompleteTime
        {
            get;
            set;
        }

        /// <summary>
        /// 任务内容
        /// </summary>
        public StudyTaskContent Content
        {
            get;
            set;
        }

        public string Suggest
        {
            get;
            set;
        }


        public AbilityType AbilityType
        {
            get;
            set;
        }
    }



}